package com.xinghou.platform.dao.main.common;

import com.xinghou.platform.dao.bases.redis.RedisOperator;
import com.xinghou.platform.util.AppContextUtil;

public class DBUserLevelCached {

	public static int CACHED_DB_INDEX = 7;
	public static String CACHE_USERID = "usercache:uid:%s";
	public static String CACHE_INFOID = "userInfocache:infoid:%s";
	public static String CACHE_USER_MOBILE = "usermobilecache:mobile:%s";
	public static String CACHE_USER_SECOND = "usersecondcache:type,authid:%s,%s";
	public static String CACHE_USER_MOBILE_PASSWORD = "usermobilepasswordcache:%s:%s";
	public static String CACHE_STATID = "userstatcache:statid:%s";
	public static String CACHE_USERINFO_USERID = "uinfocache:infoid:%s";
	public static String CACHE_USERGEO_GEOID = "UserGeocache:geoid:%s";
	public static String CACHE_USERSTATE_STATID = "UserStaticCache:statid:%s";
	public static String CACHE_USERARTIST_ID = "UserArtistCache:id:%s";
	public static String CACHE_USERARTIST_UID = "UserArtistCache:uid:%s";
	public static String VERSION_CONFIG_OSTYPE="VersionConfigCache:ostype:%s";
	public static String CACHE_CHECKMOBILE_COUNT = "checkmobilecount:%s";

	public static RedisOperator getRedisClient(){
		return (RedisOperator)AppContextUtil.getBean("cachedMainRedisOperator");
	}
	
}
